/*
 * fbank.com Inc.
 * Copyright (c) 2020 All Rights Reserved.
 * create by fm
 * date:2020-04-26
 */
package com.ouwen.smartpay.entity;


import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.*;

import javax.validation.constraints.*;

import com.fm.core.common.domain.AbstractEntity;

/**
 * 商户服务管理 Entity
 *
 * @author fm
 * Date: 2020-04-26 10:59:48
 */
@Getter
@Setter
@Entity
@Table(name = "openapi_partner_service")
public class PartnerService extends AbstractEntity {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;


    /**
     * 商户编码
     */
    @NotEmpty
    @Size(max = 32)
    private String partnerId;

    /**
     * 商户名称
     */
    @Size(max = 32)
    private String parnerName;


    /**
     * 子商户编码
     */
    @Size(max = 32)
    private String subPartnerId;

    /**
     * 子商户名称
     */
    @Size(max = 32)
    private String subPartnerName;

    /**
     * 商户主键
     */
    @NotNull
    private Long apipartnerid;

    /**
     * 服务码主键
     */
    @NotNull
    private Long apiserviceid;

    /**
     * 服务名称
     */
    @NotEmpty
    @Size(max = 32)
    private String serviceName;

    /**
     * 服务版本
     */
    @NotEmpty
    @Size(max = 16)
    private String serviceVersion;

    /**
     * 服务分组
     */
    @NotEmpty
    @Size(max = 16)
    private String serviceGroup;

    /**
     * 服务中文名
     */
    @NotEmpty
    @Size(max = 45)
    private String serviceTitle;

    /**
     * 备注
     */
    @Size(max = 128)
    private String comments;


}
